<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

<h:head>
	<title>Ministerio de Coro y Orquesta :: Asamblea Cristiana - Login</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</h:head>
<body>
	<h:outputStylesheet library="css" name="common.css" />
	<div id="contenedorLogin">
		<h:form id="loginForm">
			<rich:panel>
				<f:facet name="header">
					<h:outputText value="Inicio de Sesión" />
				</f:facet>
				<h:panelGrid columns="2">
					<h:outputText value="Apodo:" />
					<h:inputText value="#{loginBean.name}" id="name" required="true" requiredMessage="El usuario es requerido." />
					<h:outputText value="Contraseña:" />
					<h:inputSecret value="#{loginBean.password}" id="password" required="true" requiredMessage="El password es requerido." />
					<f:facet name="footer">
						<h:commandButton value="Entrar" action="#{loginBean.success}" />
					</f:facet>
				</h:panelGrid>
				
				<h:messages errorStyle="color:red;" />
			</rich:panel>
		</h:form>
	</div>
</body>
</html>
